<%@ Page Language="C#" debug="false" trace="false" Description="dotnetCHARTING Component"%>
<%@ Register TagPrefix="dotnet"  Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>

<script runat="server">
void Page_Load(Object sender,EventArgs e)
{
	//set Title
    Chart.Title="Item sales report";

    // Set the x axis label
	Chart.ChartArea.XAxis.Label.Text="X Axis Label";

	Chart.XAxis.FormatString = "MMM yy";

	// Set the y axis label
	Chart.ChartArea.YAxis.Label.Text="Y Axis Label";

	Chart.DefaultSeries.Type = SeriesType.AreaLine;

    Chart.TempDirectory="temp";
    Chart.Debug=true;


   //Adding series programatically
   	Chart.Series.Name = "Item sales";
   	Chart.Series.Data = "test.xml";
   	Chart.Series.DataFields="xaxis=OrderDate,yaxis=Total";
    Chart.SeriesCollection.Add();


}
</script>
<HTML><HEAD><TITLE>Sales Report</TITLE></HEAD>
<BODY>
<DIV align=center>
 <dotnet:Chart id="Chart"  runat="server"/>
</DIV>
</BODY>
</BODY>
</HTML>